package com.google.code.sysarch.v2.v2_final;

import java.awt.Graphics2D;

public class Decoration implements Drawable {
	
	private Sprite sprite;
	private int offset_x;
	private int offset_y;
	
	Decoration(String filename) {
		this.sprite = SpritePool.get().getSprite(filename);
	}
	
	public void setOffset(int x, int y) {
		this.offset_x = x;
		this.offset_y = y;
	}	
	
	public void draw(Graphics2D g, int x, int y) {
		this.sprite.draw(g, x+offset_x, y+offset_y);
	}

	public boolean onEvent(PathWalker p, String event, WayPoint caller, WayPoint helper) {
		return false;
	}

}
